package config_order.config;

import config_order.bean.Bean1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-10-12 16:50
 */
@DependsOn("beanFactoryAwareDemo")
@Component
public class AutowireDemo {

	@Autowired
	private List<Bean1> bean1;

	@PostConstruct
	private void init(){
		System.out.println(bean1);
	}
}
